package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.BqjspzVo;
import com.dhsc.local.dao.xtqxgl.IBqjspzDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: BqjspzDaoImpl
 * @Description: 标签角色配置
 * @date: 2023/11/9 16:04
 * @author: gx
 */
@Repository("bqjspzdao")
public class BqjspzDaoImpl implements IBqjspzDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<BqjspzVo> queryBqjspz(BqjspzVo bqjspzVo) {
        return localSqlSessionTemplate.selectList("BqjspzMapper.queryBqjspz",bqjspzVo);
    }

    @Override
    public int insertBqjspz(List<BqjspzVo> list) {
        return localSqlSessionTemplate.insert("BqjspzMapper.insertBqjspz",list);
    }

    @Override
    public int updateBqjspz(BqjspzVo bqjspzVo) {
        return localSqlSessionTemplate.update("BqjspzMapper.updateBqjspz",bqjspzVo);
    }

    @Override
    public List<BqjspzVo> queryBqjsxx() {
        return localSqlSessionTemplate.selectList("BqjspzMapper.queryBqjsxx");
    }

    @Override
    public List<BqjspzVo> queryBqmc() {
        return localSqlSessionTemplate.selectList("BqjspzMapper.queryBqmc");
    }
}
